package com.ruibang.glass.produce.mapper;

import com.ruibang.glass.produce.domain.resp.MainIngredientInfo;
import com.ruibang.glass.produce.entity.ClassReport;
import com.teaming.cloud.framework2.autoconfigure.dynamic.datasource.annotation.DS;
import com.teaming.cloud.framework2.autoconfigure.mybatisplus.mapper.CommonMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 生产-配料-班报填写 Mapper 接口
 * </p>
 *
 * @author songJinKang
 * @since 2024-04-17
 */
@Mapper
public interface ClassReportMapper extends CommonMapper<ClassReport> {

    @DS("emc")
    List<ClassReport> executeClassReportTask(@Param("date") LocalDate date);

    LocalDate getMaxDate();

    MainIngredientInfo getMainIngredientInfo(@Param("date") LocalDate date);
}
